import request from '../../../utils/request';

export const menuData = query => {
    return request({
        url: '/api/upp/menu/doMain',
        method: 'post',
        // url: './json/menu.json',
        // method: 'get',
        params: query,
    });
};
export const doAdd = query => {
    return request({
        url: '/api/upp/menu/doAdd',
        method: 'post',
        // url: './json/addORupdatepatient.json',
        // method: 'get',
        params: query,
    });
};
export const doUpdate = query => {
    return request({
        url: '/api/upp/menu/doUpdate',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
export const doDelete = query => {
    return request({
        url: '/api/upp/menu/doDelete',
        method:'delete',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
